package com.eastfair.auth.config;

import com.eastfair.boot.core.config.BaseConfig;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * base配置，里面包含mvc 拦截器,这样包含springUtils实体
 * @author ligang
 * @date 2017-12-15 14:42
 */
@Configuration
public class AuthWebConfiguration extends BaseConfig {
//    /**
//     * lamp.log.enabled = true 并且 lamp.log.type=DB时实例该类
//     *
//     * @param logApi 日志api
//     * @return 监听
//     */
//    @Bean
//    @ConditionalOnExpression("${lamp.log.enabled:true} && 'DB'.equals('${lamp.log.type:LOGGER}')")
//    public SysLogListener sysLogListener(LogApi logApi) {
//        return new SysLogListener(logApi::save);
//    }
}
